package jvm;

/**
 * 隐士加载
 * -XX:+TraceClassLoading
 */
public class TestClassLoader02 {
    public static void main(String[] args) {
        System.out.println(B.a);
    }
}

class B extends A{
    static {
        System.out.println("B");
    }
}
class A{
    public static int a =10;
    static {
        System.out.println("A.a="+a);
    }
}